<?php
/**
 * Created by PhpStorm.
 * User: WUHENG
 * Date: 2022/10/5
 * Time: 18:51
 */

namespace app\index\model;


use think\Model;

class Type extends Model
{
    public function Types(){
        return $this->hasMany('Article','typID','typID')->where('readNum','neq',0)->order('readNum','DESC')->limit(10);
    }
    public function getArt(){
        return $this->hasMany('Article','typID','typID');
    }
}